
import { nanoid } from 'nanoid'
import {defineStore} from 'pinia'

export const MY_STORE_ID = nanoid(8)

export const YOU_STORE_ID = nanoid(8)

export const useMyStore = defineStore(MY_STORE_ID,{
    state:()=>({
        myCount:'0',
        myHello:'myhello'
    }),
    getters:{

    },
    actions:{

    },


    Persistence:{
        enabled:true,
        type:'session',
        state:['myCount','myHello']
    }

})

export const useYouStore = defineStore(YOU_STORE_ID,{
    state:()=>({
        youCount:'0',
        youHello:'you hello'
    }),
    getters:{

    },
    actions:{

    },
    Persistence:{
        enabled:true,
        type:'local',
        state:['youCount','youHello']
    }

})
